<div class="four columns omega">
<?
	$ses_login = get_ses_login() ; 
	if(!empty($ses_login)){
?>
	<div class="box">
        <div class="title"><img src="<?=url()?>templates/images/ico_user.png" width="22">Trang cá nhân</div>
        <div class="mainnav">
        	<ul>
            	<li>Chào <a href=""><?=$ses_login['username']?></a></li>
                <li><a href="<?=site()?>user/profile">Cập nhật thông tin</a></li>
                <li><a href="<?=site()?>user/tindadang">Tin đã đăng</a></li>
                <li><a href="<?=site()?>user/dangtin">Đăng tin mới</a></li>
                <li class="last"><a href="<?=site()?>logout">Thoát</a></li>
            </ul>
        </div>
    </div>
<? } ?>
    <div class="box">
        <div class="title"><img src="<?=url()?>templates/images/ico_book.png" width="30">Danh mục</div>
        <div class="mainnav">
            <ul>
            <?
			$cate = get_list_class(); //trit($cate);
			foreach ($cate as $rs_cate) 
			{
           ?>
                <li><a href="<?=base_url()?>home/category/<?=$rs_cate->class_id?>/<?=kodau($rs_cate->class_name).ext?>"><?=$rs_cate->class_name?></a></li>
		<? } ?>
            </ul>
        </div>
    </div>
</div>
<script language="javascript">
$(document).ready(function(e) {
    $('.mainnav').niceScroll();
});
</script>